package com.ruoyi.system.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SmsPurchaseMapper;
import com.ruoyi.system.domain.SmsPurchase;
import com.ruoyi.system.service.ISmsPurchaseService;
import java.util.List;

/**
 * 购买短信Service业务层处理
 *
 * @author ruoyi
 * @date 2025-05-07
 */
@Service
public class SmsPurchaseServiceImpl implements ISmsPurchaseService
{
    @Autowired
    private SmsPurchaseMapper smsPurchaseMapper;

    /**
     * 通过id查询购买短信
     *
     * @param id 购买短信主键
     * @return 购买短信
     */
    @Override
    public SmsPurchase selectSmsPurchaseById(Long id)
    {
        return smsPurchaseMapper.selectSmsPurchaseById(id);
    }

    /**
     * 查询购买短信列表
     *
     * @param smsPurchase 购买短信
     * @return 购买短信
     */
    @Override
    public List<SmsPurchase> selectSmsPurchaseList(SmsPurchase smsPurchase)
    {
        return smsPurchaseMapper.selectSmsPurchaseList(smsPurchase);
    }

    /**
     * 新增购买短信
     *
     * @param smsPurchase 购买短信
     * @return 结果
     */
    @Override
    public int insertSmsPurchase(SmsPurchase smsPurchase)
    {
        return smsPurchaseMapper.insertSmsPurchase(smsPurchase);
    }

    /**
     * 修改购买短信
     *
     * @param smsPurchase 购买短信
     * @return 结果
     */
    @Override
    public int updateSmsPurchase(SmsPurchase smsPurchase)
    {
        return smsPurchaseMapper.updateSmsPurchase(smsPurchase);
    }

    /**
     * 通过id批量删除购买短信信息
     *
     * @param ids 需要删除的购买短信主键
     * @return 结果
     */
    @Override
    public int deleteSmsPurchaseByIds(Long[] ids)
    {
        return smsPurchaseMapper.deleteSmsPurchaseByIds(ids);
    }

    /**
     * 通过id删除购买短信信息
     *
     * @param id 购买短信主键
     * @return 结果
     */
    @Override
    public int deleteSmsPurchaseById(Long id)
    {
        return smsPurchaseMapper.deleteSmsPurchaseById(id);
    }


    /**
     * 通过id修改签名内容
     */
    @Override
    public int updateSignatureContentById(Long id, String signatureContent) {
        return smsPurchaseMapper.updateSignatureContentById(id, signatureContent);
    }



}

